<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.mod.Album"%>
<%@page import="java.util.List"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="include/rsouce.jsp"%>
<title>相册——我的博客</title>
</head>
<body>
	<div class="container-fluid">
		<%@include file="include/header.jsp"%>
		<div class="row">
			<div class="col-2"></div>
			<div class="col-8">
			</br>
			<%
			if(blogger!=null){
			%>
			
				<a class="btn btn-primary"
					href="AlbumservletManagement.html?m=create">创建相册</a> <br />
					<%} %>
				<br />
				<div class="row">
					<%-- <%
						List<Album> list = (List<Album>) request.getAttribute("list");
						for (Album a : list) {
					%> --%>
					<div class="col-3">
						<div class="card-deck" style="margin-bottom: 20px;">
							<div class="card">
								<img src="..." class="card-img-top" alt="...">
								<div class="card-body">
									<h5 class="card-title"><%-- <%=a.getName()%> --%></h5>
									<p class="card-text"><%-- <%=a.getDescription()%> --%></p>
								</div>
								<div class="card-footer">
									<small class="text-muted">XXX张照片</small>
									
									<%
										if (blogger != null) {
									%>
									<button class="btn btn-danger" title="相册重命名">
										<i class="far fa-edit"></i>
									</button>
									<button class="btn btn-danger" title="删除相册">
										<i class="far fa-trash-alt"></i>
									</button>
									<%
										}
									%>
								</div>
							</div>
						</div>
					</div>
					<%-- <%
						}
					%> --%>
				</div>
			</div>
			<div class="col-2"></div>
		</div>

		</div>
		
</body>
</html>